﻿using System.Collections.Generic;
using System.Threading.Tasks;
using ThridGroup.ERP.DTO.TransferTransfersDto;
using Volo.Abp.Application.Services;

namespace ThridGroup.ERP.WarehouseManagement
{
    /// <summary>
    /// 转移调拨服务接口    ---tsh
    /// </summary>
    public interface ITransferTransfersServices : IApplicationService
    {
        /// <summary>
        /// 获取转移调拨列表
        /// </summary>
        /// <param name="query">查询条件</param>
        /// <returns></returns>
        Task<(List<TransferTransfersDto> data, int total)> GetListAsync(QueryTransferTransfersDto query);

        /// <summary>
        /// 根据ID获取转移调拨
        /// </summary>
        /// <param name="id">主键ID</param>
        /// <returns></returns>
        Task<TransferTransfersDto> GetByIdAsync(int id);

        /// <summary>
        /// 创建转移调拨
        /// </summary>
        /// <param name="input">创建输入</param>
        /// <returns></returns>
        Task<TransferTransfersDto> CreateAsync(CreateTransferTransfersDto input);

        /// <summary>
        /// 更新转移调拨
        /// </summary>
        /// <param name="id">主键ID</param>
        /// <param name="input">更新输入</param>
        /// <returns></returns>
        Task<TransferTransfersDto> UpdateAsync(int id, CreateTransferTransfersDto input);

        /// <summary>
        /// 删除转移调拨
        /// </summary>
        /// <param name="id">主键ID</param>
        /// <returns></returns>
        Task DeleteAsync(int id);

        /// <summary>
        /// 生成转移单编号
        /// </summary>
        /// <returns></returns>
        Task<string> GenerateTransferCodeAsync();
    }
}
